(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    ["pages/main/storehouse/out"], {
        "0ffa": function (t, e, n) {
            "use strict";
            n.r(e);
            var o = n("763f"),
                i = n.n(o);
            for (var a in o)["default"].indexOf(a) < 0 && function (t) {
                n.d(e, t, (function () {
                    return o[t]
                }))
            }(a);
            e["default"] = i.a
        },
        "1b02": function (t, e, n) {
            "use strict";
            n.d(e, "b", (function () {
                return i
            })), n.d(e, "c", (function () {
                return a
            })), n.d(e, "a", (function () {
                return o
            }));
            var o = {
                    uniForms: function () {
                        return Promise.all([n.e("common/vendor"), n.e("components/uni-forms/uni-forms")]).then(n.bind(null, "0933"))
                    },
                    uniFormsItem: function () {
                        return n.e("components/uni-forms-item/uni-forms-item").then(n.bind(null, "4828"))
                    },
                    uniEasyinput: function () {
                        return Promise.all([n.e("common/vendor"), n.e("components/uni-easyinput/uni-easyinput")]).then(n.bind(null, "5dad"))
                    },
                    uniSwipeAction: function () {
                        return n.e("components/uni-swipe-action/uni-swipe-action").then(n.bind(null, "e7b4"))
                    },
                    uniSwipeActionItem: function () {
                        return Promise.all([n.e("common/vendor"), n.e("components/uni-swipe-action-item/uni-swipe-action-item")]).then(n.bind(null, "c498"))
                    },
                    uniLoadMore: function () {
                        return n.e("components/uni-load-more/uni-load-more").then(n.bind(null, "16c3"))
                    }
                },
                i = function () {
                    var t = this.$createElement;
                    this._self._c
                },
                a = []
        },
        "2d8f": function (t, e, n) {
            "use strict";
            var o = n("6e76"),
                i = n.n(o);
            i.a
        },
        "6e76": function (t, e, n) {},
        "763f": function (t, e, n) {
            "use strict";
            (function (t) {
                var o = n("4ea4");
                Object.defineProperty(e, "__esModule", {
                    value: !0
                }), e.default = void 0;
                var i = o(n("2eee")),
                    a = o(n("c973")),
                    r = {
                        data: function () {
                            return {
                                url: getApp().globalData.apiurl,
                                source: 0,
                                loadingType: "more",
                                totalCount: 0,
                                totalPages: 0,
                                pageSize: 10,
                                pageIndex: 1,
                                listData: [],
                                reListData: [],
                                model: {
                                    id: "",
                                    customerId: "",
                                    goodId: "",
                                    cph: "",
                                    weight: 0,
                                    unitPrice: 0,
                                    totalPrice: 0,
                                    roleId: "",
                                    status: 0
                                },
                                scrollHeight: 0,
                                pageNum:0
                            }
                        },
                        methods: {
                            downLoad: function(e) {
                               
                                var t = this;
                                // console.log(t.pageIndex)
                                // console.log(t.pageNum)
                                if (t.pageIndex<t.pageNum) {
                                    this.getdata()
                                }
                              },
                            getOutQRcode: function (e) {
                                var n = this;
                                t.request({
                                    url: this.url + "apiunattended/apiunattended/isTareExist",
                                    method: "GET",
                                    data: {
                                        orderId: this.reListData[this.reListData.findIndex((function (t) {
                                            return t.id === e
                                        }))].salesdocumentsno
                                    },
                                    success: function (o) {
                                         200 == o.data.state ? t.navigateTo({
                                            url: "/pages/main/storehouse/outScanningCode?outId=".concat(e)
                                        }) : n.getToast("当前车辆进厂未过磅！请通知司机重新过磅！！！", !1)
                                    },
                                    fail: function () {
                                        n.getToast("请重新登录系统！", !1)
                                    }
                                })
                            },
                            getToast: function (t, e) {
                                plus.nativeUI.toast('<font style="font-size:32px">' + t + "</font>", {
                                    verticalAlign: "center",
                                    type: "richtext",
                                    icon: e ? "/static/icon/success.png" : "/static/icon/error.png",
                                    duration: "short",
                                    richTextStyle: {
                                        align: "center",
                                        fontSrc: "static/font/...otf"
                                    }
                                })
                            },
                            loadData: function () {
                                var t = arguments,
                                    e = this;
                                return (0, a.default)(i.default.mark((function n() {
                                    return i.default.wrap((function (n) {
                                        while (1) switch (n.prev = n.next) {
                                            case 0:
                                                t.length > 0 && void 0 !== t[0] ? t[0] : "add", t.length > 1 ? t[1] : void 0, e;
                                            case 3:
                                            case "end":
                                                return n.stop()
                                        }
                                    }), n)
                                })))()
                            },
                            refreshList: function (t) {
                                this.loadData("refresh")
                            },
                            deleteItem: function (t) {
                                var e = this;
                                return (0, a.default)(i.default.mark((function n() {
                                    return i.default.wrap((function (n) {
                                        while (1) switch (n.prev = n.next) {
                                            case 0:
                                                e 
                                                //console.log("删除" + t);
                                            case 2:
                                            case "end":
                                                return n.stop()
                                        }
                                    }), n)
                                })))()
                            },
                            goDetail: function (e) {
                                // console.log(e), 
                                t.navigateTo({
                                    url: "/pages/main/storehouse/outdetails?id=".concat(e)
                                })
                            },
                            getOutList: function () {
                                var e = this,
                                    n = this;
                                t.request({
                                    url: this.url + "outboundorder/outboundorder/list",
                                    method: "GET",
                                    data: {},
                                    success: function (o) {
                                        n.reListData = o.data.rows;
                                        for (var i = function (n) {
                                                t.request({
                                                    url: e.url + "driverorders/driverorders/list",
                                                    method: "GET",
                                                    data: {
                                                        orderid: e.reListData[n].salesdocumentsno,
                                                        ordertype: 2
                                                    },
                                                    success: function (t) {
                                                        if (t.data.rows.length > 1) {
                                                            for (var o = "", i = 0; i < t.data.rows.length; i++) o = t.data.rows[0].licenseplate + "、" + o;
                                                            e.reListData[n].remark = o
                                                        } else t.data.rows.length > 0 && (e.reListData[n].remark = t.data.rows[0].licenseplate)
                                                    },
                                                    fail: function () {},
                                                    complete: function () {}
                                                })
                                            }, a = 0; a < e.reListData.length; a++) i(a)
                                    },
                                    fail: function () {},
                                    complete: function () {
                                        t.request({
                                            url: e.url + "driverorders/driverorders/list",
                                            method: "GET",
                                            data: {
                                                ordertype: 2
                                            },
                                            success: function (t) {
                                                t.data.rows
                                            },
                                            fail: function () {},
                                            complete: function () {}
                                        })
                                    }
                                })
                            },
                            submitForm: function () {
                                this.getOutList();
                                var t = [];
                                setTimeout((function () {}), 3e3);
                                var e = this.reListData;
                                if ("" == this.model.id || null == this.model.id || void 0 == this.model.id || "" != this.model.cph && null != this.model.cph && void 0 != this.model.cph)
                                    if ("" == this.model.cph || null == this.model.cph || void 0 == this.model.cph || "" != this.model.id && null != this.model.id && void 0 != this.model.id)
                                        if ("" != this.model.cph && null != this.model.cph && void 0 != this.model.cph && "" != this.model.id && null != this.model.id && void 0 != this.model.id) {
                                            this.reListData = [];
                                            for (var n = 0; n < e.length; n++) e[n].remark == this.model.cph && e[n].salesperson == this.model.id ? t.push(e[n]) : console.log("车牌号搜索没找到")
                                        } else t = this.reListData;
                                else {
                                    this.reListData = [];
                                    for (var o = 0; o < e.length; o++) e[o].remark == this.model.cph ? t.push(e[o]) : console.log("车牌号搜索没找到")
                                } else {
                                    this.reListData = [];
                                    for (var i = 0; i < e.length; i++) e[i].salesperson == this.model.id && (console.log("找到销售员进行追加"), t.push(e[i]))
                                }
                                this.listData = t
                            },
                            getdata:function()
                            {
                                var n = this;
                                wx.request({
                                    url: this.url + "outboundorder/outboundorder/list",
                                    method: "GET",
                                    data: {
                                        isdelete:5,
                                        pageNum:n.pageIndex,
                                        pageSize:n.pageSize
                                    },
                                    success: function (t) {
                                        //n.listData = t.data.rows, 
                                        t.data.rows.forEach(item => {

                                            n.listData.push(item)
                                        });
                                        for (var i = function (e) {
                                            wx.request({
                                                url: n.url + "driverorders/driverorders/list",
                                                method: "GET",
                                                data: {
                                                    orderid: n.listData[e].salesdocumentsno,
                                                    ordertype: 2
                                                },
                                                success: function (t) {
                                                    if (t.data.rows.length > 1) {
                                                        for (var o = "", i = 0; i < t.data.rows.length; i++) o = t.data.rows[0].licenseplate + "、" + o;
                                                        n.listData[e].remark = o
                                                    } else t.data.rows.length > 0 && (n.listData[e].remark = t.data.rows[0].licenseplate)
                                                },
                                                fail: function () {},
                                                complete: function () {}
                                            })
                                        }, a = 0; a < n.listData.length; a++) i(a)
                                        
                                       // t.listData = e.data.rows,
                                        n.pageIndex=n.pageIndex + 1
                                        console.log(n.listData)
                                    },
                                    fail: function () {},
                                    complete: function () {}
                                })
                            }
                        },
                        onLoad: function (e) {
                            var n = this,
                                o = this;
                            this.getOutList(), 
                            t.request({
                                url: this.url + "outboundorder/outboundorder/list",
                                method: "GET",
                                data: {
                                    isdelete:5,
                                    pageNum:n.pageIndex,
                                    pageSize:n.pageSize
                                },
                                success: function (e) {
                                    o.listData = e.data.rows;
                                    n.pageIndex=n.pageIndex+1;
                                    n.pageNum=e.data.total/n.pageSize +1;
                                    console.log(o.listData);
                                    for (var i = function (e) {
                                            t.request({
                                                url: n.url + "driverorders/driverorders/list",
                                                method: "GET",
                                                data: {
                                                    orderid: n.listData[e].salesdocumentsno,
                                                    ordertype: 2
                                                },
                                                success: function (t) {
                                                    if (t.data.rows.length > 1) {
                                                        for (var o = "", i = 0; i < t.data.rows.length; i++) o = t.data.rows[0].licenseplate + "、" + o;
                                                        n.listData[e].remark = o
                                                    } else t.data.rows.length > 0 && (n.listData[e].remark = t.data.rows[0].licenseplate)
                                                },
                                                fail: function () {},
                                                complete: function () {}
                                            })
                                        }, a = 0; a < n.listData.length; a++) i(a)
                                },
                                fail: function () {},
                                complete: function () {
                                    t.request({
                                        url: n.url + "driverorders/driverorders/list",
                                        method: "GET",
                                        data: {
                                            ordertype: 2
                                        },
                                        success: function (t) {
                                            t.data.rows
                                        },
                                        fail: function () {},
                                        complete: function () {
                                            // console.log(o.listData)
                                        }
                                    })
                                }
                            });
                            wx.getSystemInfo( {
                                success: function( res ) {
                                    n.scrollHeight=res.windowHeight - 100
                                }
                              });
                        },
                        onPullDownRefresh: function () {
                            this.loadData("refresh")
                        },
                        onReachBottom: function () {
                            this.loadData("add")
                        }
                    };
                e.default = r
            }).call(this, n("543d")["default"])
        },
        cfa1: function (t, e, n) {
            "use strict";
            n.r(e);
            var o = n("1b02"),
                i = n("0ffa");
            for (var a in i)["default"].indexOf(a) < 0 && function (t) {
                n.d(e, t, (function () {
                    return i[t]
                }))
            }(a);
            n("2d8f");
            var r = n("f0c5"),
                s = Object(r["a"])(i["default"], o["b"], o["c"], !1, null, null, null, !1, o["a"], void 0);
            e["default"] = s.exports
        },
        f7a1: function (t, e, n) {
            "use strict";
            (function (t, e) {
                var o = n("4ea4");
                n("c150"), n("5c17"), n("a9ff");
                o(n("66fd"));
                var i = o(n("cfa1"));
                t.__webpack_require_UNI_MP_PLUGIN__ = n, e(i.default)
            }).call(this, n("bc2e")["default"], n("543d")["createPage"])
        }
    },
    [
        ["f7a1", "common/runtime", "common/vendor"]
    ]
]);